package com.ruoyi.project.channel.channelAccount.mapper;

import com.ruoyi.project.channel.channelAccount.domain.ChannelAccount;
import java.util.List;	

/**
 * 通道账户 数据层
 * 
 * @author ruoyi
 * @date 2019-04-09
 */
public interface ChannelAccountMapper 
{
	/**
     * 查询通道账户信息
     * 
     * @param accountId 通道账户ID
     * @return 通道账户信息
     */
	public ChannelAccount selectChannelAccountById(String accountId);
	
	/**
     * 查询通道账户列表
     * 
     * @param channelAccount 通道账户信息
     * @return 通道账户集合
     */
	public List<ChannelAccount> selectChannelAccountList(ChannelAccount channelAccount);
	
	/**
     * 新增通道账户
     * 
     * @param channelAccount 通道账户信息
     * @return 结果
     */
	public int insertChannelAccount(ChannelAccount channelAccount);
	
	/**
     * 修改通道账户
     * 
     * @param channelAccount 通道账户信息
     * @return 结果
     */
	public int updateChannelAccount(ChannelAccount channelAccount);
	
	/**
     * 删除通道账户
     * 
     * @param accountId 通道账户ID
     * @return 结果
     */
	public int deleteChannelAccountById(String accountId);
	
	/**
     * 批量删除通道账户
     * 
     * @param accountIds 需要删除的数据ID
     * @return 结果
     */
	public int deleteChannelAccountByIds(String[] accountIds);

	/**
	 * 通过账号查找账号信息
	 * @param account
	 * @return
	 */
	public List<ChannelAccount> selectChannelAccountListByAccount(String account,String payType);

	public int setAmount(ChannelAccount channelAccount);
}